package com.qf.commons.event.config;

import com.qf.commons.event.core.handle.DefaultConsumerStandrad;
import com.qf.commons.event.core.handle.DefaultProduceStandrad;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 自动装配的类
 */
@Configuration
@ComponentScan("com.qf.commons.event.**.interceptor")
public class EventAutoConfiguration {

    @Bean
    public DefaultConsumerStandrad getDefaultConsumerStandrad(){
        return new DefaultConsumerStandrad();
    }

    @Bean
    public DefaultProduceStandrad getDefaultProduceStandrad(){
        return new DefaultProduceStandrad();
    }
}
